﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace MyBasicLib.Data.ORMLiteNew
{
    public interface IDbQueryExecutor
    {
        IDbCommand CreateCommand(string commandText);
        TElement Execute<TElement>(IDbCommand cmd);
        IList<TElement> ExecuteList<TElement>(IDbCommand cmd);
        int ExecuteNonQuery(IDbCommand cmd);
        T ExecuteScalar<T>(IDbCommand cmd); 
    }
}
